/**
 * author: MaHX
 * date: 2019/11/6/21:31
 * description:
 **/
public class javaEsayErrorEeam {
    public static void main(String[] args) {
        System.out.println("1<<16 :" + (1 << 16));  // 左移16位 为 2（16）为65536

        String s1 = "nowcoder";
        String s2 = "nowcoder";
        System.out.println("s1 == s2 is:" + s1 == s2);  //先执行s1 == s2 is: +s1,在执行==s2

        int x = 4;
        System.out.println(x++);  //先打印再加一

        int y = 1;
        System.out.println( x = y);  //赋值语句也是有返回值得到，返回结果，不能用if（x=y）会报错

        char c = 42;
        System.out.println("c = "+c);

        int [] arr = {1,2,3};
        int myArr [] = {1,2,3};
        Dog dog = null;
        dog.cry();
        System.out.println(Dog.num);

        String str = "nowcoder";
        str.toUpperCase();
        str += "wwwnowcodercom";
        String string = str.substring(2,13);
        string = string + str.charAt(4);
        System.out.println(string);
    }
    static class Dog {
        public static int num = 10;
        public static void cry(){
            System.out.println("汪汪汪");
        }
    }
}
